package com.bit.ThreadTest;

class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("hello Thread");
    }
}
public class Test1 {
    public static void main(String[] args) {
        Thread thread = new MyThread();
        //start方法在操作系统中建立一个新的线程，这个线程会执行run方法
        thread.start();
    }
}
